<?php

declare(strict_types=1);

namespace cms\office\model;

use cms\system\model\AbstractModel;

class CommonModel extends AbstractModel
{
    public function setAmountAttribute($value)
    {
        $this->attributes['amount'] = $value * 100;
    }

    public function getAmountAttribute($value)
    {
        return $value / 100;
    }
}